Get all Roles for a User
{ getRolesByUser }
Returns all roles IDs associated with a user.
Method
/API3/access/getRolesByUser
- Enterprise Admin
Input Parameters
Name
userId
Type
string
Description
The system user ID
Output Response
Successful Result Code
200
Response List Type
Description of Response Type
Returns a generic response object with the list of all role IDs. Note that the response is returned as a list of items of this object type.
Notes
This method only returns role ID's. Use this method with 'getRoleById' to get the role object.
Code Snippets
Use the Authentication API methods to generate an access 'key' or 'token' for use in code as shown below.
TypeScript
Curl
Java
C#
Python
PHP